package com.yuxinmuyu.sports_management.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuxinmuyu.sports_management.bean.entiy.SportsProject;
import com.yuxinmuyu.sports_management.bean.request.GetDeptNameRequest;
import com.yuxinmuyu.sports_management.bean.request.GetClassListRequest;
import com.yuxinmuyu.sports_management.bean.request.GetSportsInfoRequest;
import com.yuxinmuyu.sports_management.bean.request.GetSportsProjectRequest;
import com.yuxinmuyu.sports_management.bean.request.UpdateSportsInfoRequest;
import com.yuxinmuyu.sports_management.bean.response.ClassResponse;
import com.yuxinmuyu.sports_management.bean.response.DeptResponse;
import com.yuxinmuyu.sports_management.bean.response.GetSportsInfoResponse;
import com.yuxinmuyu.sports_management.bean.response.MajorResponse;
import com.yuxinmuyu.sports_management.bean.response.YearTermResponse;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface SportsProjectService {
    Page<SportsProject> getPage(GetSportsProjectRequest request);

    List<YearTermResponse> getSelectList();

    GetSportsInfoResponse getInfoByID(GetSportsInfoRequest request);

    void deleteInfoByID(GetSportsInfoRequest request);

    void updateByID(UpdateSportsInfoRequest request);

    List<DeptResponse> getDept();

    List<MajorResponse> getMajor(GetDeptNameRequest request);

    List<ClassResponse> getSClass(GetClassListRequest request);

    void export(GetSportsProjectRequest request, HttpServletResponse response);
}
